package com.sl.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.time.LocalDateTime;

@Table(name = "sl_user")
@Data
public class User implements Serializable {

    @Id
    private Integer id;//
    private String username;//2用户名
    private String password;
    private String name;//4人员姓名
    private Integer roleId;
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime lastLoginTime;//6最后登录时间。。字符串保存

    private String address;//7地址
    private String email;//8邮箱
    private String telephone;//9电话


    private Integer deleted;//10
    //11经纬度。
    private Double positionLng;
    //12
    private Double positionLat;

}
